{% extends 'deant_nav.html' %}

{% block content %}
   <div class="container">
     <div class="panel panel-default">
          <div class="panel-heading">
            <h3 class="panel-title">新建部门</h3>
          </div>
      <div class="panel-body">
                 {#     novalidate取消网页默认的提示           #}
         <form class="form-horizontal" method="post" novalidate style="margin: 10px 10px">
              {% csrf_token %}
             {% for em in tokens %}
             <div class="form-group">
                  <label>{{ em.label }}</label>
                       {{ em }}
                    <span style="color:red;">{{ em.errors.0 }}</span>
              </div>
             {% endfor %}
              <button type="submit" class="btn btn-primary">提 交</button>
          </form>
      </div>
     </div>
   </div>
{% endblock %}